<!--# layout("/common/layout.html",{"jsBase":"/js/admin/customer/"}){ -->

<form class="layui-form layui-form-pane" id="updateForm">
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">客户名称</label>
                <div class="layui-input-inline">
                    <input type="text" id="name" name="name" value="${customer.name}" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">客户性别</label>
                <div class="layui-input-inline">
                    <input type="text" id="sex" name="sex" value="${customer.sex}" class="layui-input">
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">客户地址</label>
                <div class="layui-input-inline">
                    <input type="text" id="address" name="address" value="${customer.address}" class="layui-input">
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">创建时间</label>
                <div class="layui-input-inline">
                    <input type="text" id="createdAt" name="createdAt" value="${customer.createdAt," yyyy-MM-dd"}"
                    class="layui-input input-date" >
                </div>
            </div>
        </div>
    </div>
    <!-- 业务对象须有hidden字段，保存delFlag和version字段-->
    <input type="hidden" name="delFlag" value=${customer.delFlag}/>
    <input type="hidden" name="id" value=${customer.id}/>
    <layui:submitButtons id="updateButton"/>
</form>
<!--#} -->
<script>
    layui.use(['edit'], function () {
        var customerEdit = layui.edit
        customerEdit.init();
    });
</script>
